package a2;

import a1.People;

public class Teacher extends People{
	String lesson;
	public Teacher(int id,String name,String sex,String lesson){
		super(id,name,sex);
	    this.id = id;
	    this.name = name;
	    this.sex = sex;
	    this.lesson=lesson;
	}
	public String toString(){
		return "Teacher(教师信息):" + "  编号：" + id + "    姓名：" + name + "   性别：" + sex + "     所授课程：" + lesson;
	}
	}

